//
//  JWKDetailViewController.swift
//  Weibo
//
//  Created by 姜维克 on 16/5/20.
//  Copyright © 2016年 姜维克. All rights reserved.
//

import UIKit

class JWKDetailViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        view.backgroundColor = UIColor.whiteColor()
        setupLeftItem()

//        navigationItem.backBarButtonItem?.title = "返回"
    }

    @objc private func setupLeftItem(){
        
//        let back = UIBarButtonItem.init(imageName: "navigationbar_back_withtext", title: "返回", target: self, action: #selector(JWKDetailViewController.back))
//        
//        navigationItem.leftBarButtonItem = back
        
        
        let right = UIBarButtonItem(imageName: "navigationbar_friendsearch", title: "next", target: self, action: #selector(next))
        
        navigationItem.rightBarButtonItem = right
        
    }
    
//   @objc private func back(){
//        navigationController?.popViewControllerAnimated(true)
//    }
    
    @objc private func next(){
        let vc = JWKDetailViewController()
        
        navigationController?.pushViewController(vc, animated: true)
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
